package edu.fdzc.system.service;

import com.github.pagehelper.PageInfo;
import edu.fdzc.system.entity.Article;

import java.util.List;

public interface ArticleService {
    void add(Article article);

    void updateById(Article article);

    void deleteById(Integer id);

    void deleteBatch(List<Integer> ids);

    Article selectById(Integer id);

    List<Article> selectAll(Article article);

    PageInfo<Article> selectPage(Article article, Integer pageNum, Integer pageSize);

    List<Article> selectRandom();
}
